package com.ruoyi.hqfinance.service.impl;

import com.ruoyi.hqfinance.domain.HqChannel;
import com.ruoyi.hqfinance.mapper.HqChannelMapper;
import com.ruoyi.hqfinance.service.HqChannelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.List;

@Service
public class HqChannelServiceImpl implements HqChannelService {
    @Autowired
    private HqChannelMapper hqChannelMapper;

    @Override
    public List<HqChannel> selectAll() {
        return hqChannelMapper.selectAll();
    }

    @Override
    public Boolean insert(HqChannel hqChannel) {
        return hqChannelMapper.insert(hqChannel);
    }

    @Override
    public Boolean update(HqChannel hqChannel) {
        return hqChannelMapper.update(hqChannel);
    }

    @Override
    public Boolean deleteById(Integer id) {
        return hqChannelMapper.deleteById(id);
    }
}
